home *** CD-ROM | disk | FTP | other *** search
- From: bousch@topo.matups.fr (Thierry Bousch)
- Subject: removing a file
- Date: Sat, 7 May 1994 22:02:22 +0200 (MET DST)
- In-Reply-To: <9404271713.AA03822@pfsparc01.phil15.uni-sb.de> from "Benjamin Lorenz" at Apr 27, 94 07:13:42 pm
-
- Hi,
-
- > To test this, I copied `rm' to my home and made a chmod 2755:
- > -rwxr-sr-x 1 benni mail 29018 Apr 27 18:34 rm
- >
- > In my spool dir, there is a lockfile, produced by elm:
- > -r-------- 1 benni wheel 31322 Apr 27 17:45 benni.lock
- >
- > And the permissions of the directory are:
- > drwxrwxr-x 2 root mail 320 Apr 27 18:41 /usr/spool/mail
- >
- > So `rm' should be allowed to remove the file...
- > With MiNT 1.09 it works, with 1.10 it doesn't!
- > Why???
-
- In MiNT 1.10, you can only remove a file in a directory iff:
-
- (1) you have write permission to the directory,
- (2) you own the file.
-
- MiNT 1.09, just like standard Unix, only checks (1). Condition (2) is
- the cause of your problem, since the owner of the file (which is the
- real uid of the program) does not match the effective uid.
-
- Thierry.
-
-